<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <title>领奖信息</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="keywords" content="{{ env('APP_KEYWORDS', '') }}">
    <meta name="description" content="{{ env('APP_DESCRIPTION', '') }}">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <!-- Styles -->
    <link href="{{ asset('js/layui/css/layui.css') }}" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="{{ asset('js/jquery-1.11.2.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('js/layer/layer.js') }}"></script>
    <script type="text/javascript" src="{{ asset('js/layui/layui.js') }}"></script>
    <script type="text/javascript" src="{{ asset('js/main.js') }}"></script>
    <link rel="shortcut icon" href="favicon.ico" />
    <base target="_self">
</head>

<body>

<form class="layui-form" action="" style="width: 90%; margin-top: 20px;">
    <input type="hidden" name="id" value="{{ $id  }}">
    <div class="layui-form-item">
        <label class="layui-form-label">中奖金额:</label>
        <div class="layui-input-block">
            <input type="text" required value="{{$log->money}}" autocomplete="off" class="layui-input" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">游戏账号:</label>
        <div class="layui-input-block">
            <input type="text" name="game_num" required  lay-verify="required" placeholder="请输入游戏账号" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">确认账号:</label>
        <div class="layui-input-block">
            <input type="text" name="game_num_re" required  lay-verify="required" placeholder="请确认游戏账号" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">验证码:</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="captcha" autocomplete="off" class="layui-input" id="captcha">
            </div>
        </div>
        <img src="{{captcha_src()}}" id="captcha_img" onclick="this.src='{{captcha_src()}}'+Math.random()">
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">确定</button>
        </div>
    </div>
</form>

<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            sendRequest('POST', '{{route("reCommitGetLog", "")}}',data.field, function (response) {
                layer.open({
                    content: '提交成功',
                    yes: function(index, layero){
                        //do something
                        layer.closeAll();
                        parent.layer.closeAll(); //如果设定了yes回调，需进行手工关闭
                        parent.location.reload(); //如果设定了yes回调，需进行手工关闭
                    }
                });
            })
            return false;
        });
    });
</script>

</body>


</html>
